<template>
  <view>
    <u-navbar title="慢病建议" back-icon-size="34" title-size="36" :border-bottom="false" :background="background" title-color="#222" back-icon-color="#222"></u-navbar>
    <view class="" style="padding: 28rpx">
      <rich-text :nodes="nodes"></rich-text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      background: {
        background: '#FFFFFF'
      },
      nodes: '',
      id: null
    };
  },
  methods: {
    content() {
      this.api({
        url: '/api/healthy/knowledges',
        method: 'post',
        data: {
          id: this.id
        }
      }).then((res) => {
        this.nodes = res.data.content;
      });
    }
  },
  onLoad(op) {
    this.id = op.id;
    this.content();
  }
};
</script>

<style></style>
